const express = require("express");
const userRouter = require("./user.js");
const tagCtrl = require("../controller/tag.js");

const router = express.Router();

// router.get("/", (req, res) => {
//   res.send("Hello world");
// });

// router.post("/", (req, res) => {
//   console.log(req.body);
//   res.send("hello world -post");
// });

// 获取tag标记
router.get("/tags", tagCtrl.getTags)
// 用户相关路由
router.use(userRouter);
// 用户资料相关路由
router.use("/profiles", require("./profile.js"));
// 文章相关路由
router.use("/articles", require("./articles.js"));

module.exports = router;
